<?php
class GdPlugins extends G_Image{
    public function clip($src, $w, $h)
    {
        
    }

    public function resize($src, $w, $h)
    {
        
    }

    public  function createCode($code,$w,$h){
        $strlen = mb_strlen($code);
        $fontsize = ($w-10)/$strlen;
        if($fontsize > $h){
            $fontsize = $h - 5;
        }
    }
}